export default function(targe, orgin) {
    if (typeof targe !== 'object' || targe === null) return false
    if (typeof orgin !== 'function') {
        throw new TypeError(`origin is not a function`)
    }
    let proto = Object.getPrototypeOf(targe)
    while(proto) { // 一直往底层找 找到 Object.__proto__ 为止
        if (proto === origin.prototype) return true
        proto = Object.getPrototypeOf(proto) // 一直往底层递归赋值
    }
    return false
}